#!/bin/sh
# Copyright (C) 2003, Charles Wang.
# Author:  Charles Wang <charles@linux.net.cn>
# All rights reserved.
# License: GPL

# echo "Mount proc filesystem:"
# mount -n -t proc proc /proc

# echo "Mount sysfs filesystem:"
# mount -n -t sysfs sysfs /sys

# echo "Mount usb filesystem:"
# mount -t usbfs none /proc/bus/usb

#echo "Remount root filesystem in read-write mode:"
#mount -n -o remount,rw /

echo "Mount all filesystems:"
/bin/mount -a

echo "Make the required directories."
/bin/mkdir -p /tmpfs/dev
/bin/mkdir -p /tmpfs/tmp
/bin/mkdir -p /tmpfs/var/lib/xkb
/bin/mkdir -p /tmpfs/var/log
/bin/mkdir -p /tmpfs/var/run
/bin/mkdir -p /tmpfs/var/lock/rpm
